<div class="{$class}">
	<div>
		<h4>{$title}<small> &nbsp; <a rel="{$id}" class="update" href="javascript:void(0)" id="update_widget"><i class="icon-pencil"></i></a> &nbsp; <a href="{:U('index/widget_delete', 'id='.$id)}" id="delete_widget"><i class="icon-remove"></i></a> &nbsp; </small></h4>
	</div>
	<if condition="$list eq null">
		<p>{:L('EMPTY_TPL_DATA')}</p>
	<else/>
	<table class="table table-hover table-striped">
		<thead>
			<tr>
				<th>{:L('CONTACT_PERSON_NAME')}</th>
				<th>{:L('COMPANY')}</th>
				<th>{:L('PHONE')}</th>
				<if condition="C('ismobile') neq 1 "><th>{:L('EMAILS')}</th>
				<th>{:L('NEXT_CONTACT')}</th></if>
			</tr>
		</thead>
		<tbody>
			<volist name="list" id="vo">
				<tr>
					<td><a href="{:U('leads/view', 'id='.$vo['leads_id'])}">{$vo.name}</a></td>
					<td>{$vo.name}</td>
					<td>{$vo.phone}</td>
					<if condition="C('ismobile') neq 1"><td>{$vo.email}</td></if>
					<if condition="(C('ismobile') neq 1) and ($vo['nextstep_time'] lt strtotime(date('Y-m-d')))"><td><span style="color:red">
					<elseif condition="(C('ismobile') neq 1) and ($vo['nextstep_time'] lt (strtotime(date('Y-m-d'))+86400))"/><td><span style="color:green">
					<elseif condition="(C('ismobile') neq 1)" />
						<td>
					</if>
					<if condition="($vo['nextstep_time'] neq 0) and (C('ismobile') neq 1)">{$vo.nextstep_time|date='Y-m-d',###} {$vo.nextstep}</if>
					<if condition="(C('ismobile') neq 1) and ($vo['nextstep_time'] lt strtotime(date('Y-m-d')))"></span></td>
					<elseif condition="(C('ismobile') neq 1) and ($vo['nextstep_time'] lt (strtotime(date('Y-m-d'))+86400))"/></span></td>
					<elseif condition="(C('ismobile') neq 1)" /></td>
					</if>
				</tr>
			</volist>
		</tbody>
	</table>
	</if>				
</div>